'###########################
'MAIN-Script LU 200
'###########################

'(c) Marcel Kuhnt, Rüdiger Hülsmann
'(c) ViewApp - Software Applications & Design e.U.

'Script Version: 1.1
'Omsi release: 1.03


'Revision History:
'- Marcel Kuhnt		2009	Grundlagen
'- Rüdiger Hülsmann	2010	Grundlagen
'- ViewApp		2012	Anpassung an LU 200

'------------------------------------------------------------------------------------------


'######################
'	Hauptteil
'######################

{init}
	(M.L.engine_Init)
	(M.L.Antrieb_Init)
	(M.L.Elec_Init)
	(M.L.Door_Init)
	(M.L.wiper_init)
	(M.L.lights_init)
	(M.L.bremse_init)
	(M.L.rollband_init)
	(M.L.cockpit_init)
	(M.L.heizung_init)
	(M.L.IBIS_init)
	(M.L.Collision_Init)
{end}

{frame}
	(M.L.Engine_Frame)
	(M.L.Antrieb_Frame)
	(M.L.Elec_Frame)
	(M.L.Door_frame)
	(M.L.cockpit_frame)
	(M.L.lights_frame)
	(M.L.wiper_frame)
	(M.L.Auspuff_Frame)
	(M.L.bremse_frame)
	(M.L.klappern_frame)
	(M.L.rollband_frame)
	(M.L.FF_frame)
	(M.L.rain_frame)
	(M.L.dirt_frame)
	(M.L.sound_volume_frame)
	(M.L.heizung_frame)
	(M.L.IBIS_frame)
	(M.L.vis_Aufkleber)
	(M.L.vis_Frontgriffe)


(L.L.PAX_Exit0_Req)
(S.L.Debug_0)

(L.L.PAX_Exit1_Req)
(S.L.Debug_1)

(L.L.PAX_Exit2_Req)
(S.L.Debug_2)

(L.L.PAX_Entry0_Req)
(S.L.Debug_3)

(L.L.PAX_Entry1_Req)
(S.L.Debug_4)

2 (M.V.GetHumanCountOnPathLink)
(S.L.Debug_5)





	(L.L.AI_Engine) 0.5 >
	(L.L.engine_on) 0.5 <
	(L.L.antrieb_getr_gangvorwahl) 4 = ! ||
	&&
	{if}
		0 (S.L.bremse_feststell_sw) (S.L.bremse_feststell)
		1 (S.L.engine_injection_on)
		400 (S.L.engine_n)
		4 (S.L.antrieb_getr_gangvorwahl)
		1 (S.L.engine_on)
	{endif}

	(L.L.AI_Engine) -0.5 <
	(L.L.engine_on) 0.5 >
	&&
	{if}
		0 (S.L.engine_on)
		0 (S.L.engine_injection_on)
		1 (S.L.bremse_feststell_sw) (S.L.bremse_feststell)
	{endif}




{end}

'----------------------------------
'Crash:

{trigger:collision}
	(M.L.Collision_Trigger)
{end}


'----------------------------------
'malfunction reset:


{trigger:malfunction_reset}
	1.0 (S.L.elec_V_battery)
	(M.L.Collision_Malfunction_Reset)
{end}

